Make the set_location()/get_location() API consistent
authorFederico Mena Quintero <federico@gnome.org>
Fri, 11 Jan 2013 00:12:15 +0000 (18:12 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Fri, 11 Jan 2013 00:12:15 +0000 (18:12 -0600)
commitda2e081786552a69dd7e278d713689c8d5606a87
tree98294a08447b6d1f271249e06cb3b01639ec2cd8
parent0b4183234b23866b3857cb00a145b34c954ac2d1
Make the set_location()/get_location() API consistent

We used to have set_current_location() and get_selected_location(), with confusing
semantics.  Now they are symmetric, with the exception that if set_location() is
called with a location that is not shown in the sidebar, then it will both clear
the selection in the list and make get_selection() return NULL.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserdefault.c
gtk/gtkplacessidebar.c
gtk/gtkplacessidebar.h